package com.example.malltest0.controller;


import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("/test")
@Api(tags = "PmsBrandController", description = "测试")
public class TestController {

    @ResponseBody
    @RequestMapping(method = RequestMethod.GET)
    @ApiOperation("添加品牌")
    @PreAuthorize("hasAuthority('pms:brand:read')")
    public void test(){
        System.out.println("123");
    }
}
